<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<title>开始使用layui</title>
		<link rel="stylesheet" href="../layui/css/layui.css">
		<script src="../layui/layui.js"></script>
	</head>
	<body>
		<script>
			layui.use('layer', function() {
				var layer = layui.layer;

				layer.confirm('is not?', {icon: 3, title:'提示'}, function(index){
				  //do something
				  
				  layer.close(index);
				});
			});
			layer.confirm('is not?', function(index){
			  //do something
			  
			  layer.close(index);
			});       
		</script>
	</body>

</html>
